package com.unit_9;

public class Duck extends Animal implements Swimmable, Flyable{
    @Override
    public void swim(){
        System.out.println("Swimming...");
    }
    @Override
    public void fly(){
        System.out.println("Flying...");
    }
    @Override
    public void eat(){
        System.out.println("Eating...");
    }

    public static void main(String[] args) {
        Duck duck = new Duck();
        duck.swim();
        duck.fly();;
        duck.eat();
    }
}
